<?php

class Silk_View_Helper_ObjectForm extends Zend_View_Helper_Form {

    public function setView(Zend_View_Interface $pView){
	$this->view = $pView;
    }

    public function objectForm($name=null, $attribs=null, $content=false){
	Silk::debug('Silk_View_Helper_ObjectForm.objectForm: form=' . logobject($this->view->form));

	if ($this->view->form instanceof Zend_Form)
	    return $this->view->form;
	else
	    return $this->view->this->form('object_form', array('method' => 'post', 'class' => 'crud'), $this->view->form);
    }

}
?>